import productlight from "./productlight"
import { get, post } from "../http"
import api from "../api"
import { AxiosPromise } from "axios"
import productlightModel from "../productlight"

class productlights implements productlight {
    query(params?: any): AxiosPromise<any> {
        return get(api.querylight, params)
    }
    add(data: productlightModel): AxiosPromise<any> {
        return post(api.addlight, data)
    }
}
export default new productlights()